//
//  FeedBackViewController.m
//  BusinessApp
//
//  Created by CccDaxIN on 2016/10/13.
//  Copyright © 2016年 macox. All rights reserved.
//

#import "FeedBackViewController.h"

@interface FeedBackViewController ()<UIWebViewDelegate>
@property (nonatomic,strong)UIWebView *webView;
@end

@implementation FeedBackViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"意见反馈";
    self.view.backgroundColor = [UIColor whiteColor];
    
//    _webView = [[UIWebView alloc]initWithFrame:CGRectMake(0,0,kScrernWidth, kScrernHeight)];
//    [_webView setUserInteractionEnabled:YES];//是否支持交互
//    //[webView setDelegate:self];
//    _webView.delegate=self;
//    [_webView setOpaque:NO];//opaque是不透明的意思
//    [_webView setScalesPageToFit:YES];//自动缩放以适应屏幕
//    [self.view addSubview:_webView];
//    
//    //加载网页的方式
//    //1.创建并加载远程网页
//    NSURL *url = [NSURL URLWithString:@"http://121.42.204.177:9999/Admin/Test/management"];
//    [_webView loadRequest:[NSURLRequest requestWithURL:url]];
    /*
     *返回
     */
    UIImage *FeedBackImage = [UIImage imageNamed:@"左箭头"];
    FeedBackImage = [FeedBackImage imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithImage:FeedBackImage style:UIBarButtonItemStylePlain target:self action:@selector(FeedBackAction)];

    // Do any additional setup after loading the view.
}
- (void)FeedBackAction{
    [self.navigationController popViewControllerAnimated:YES];
}
- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    self.tabBarController.tabBar.hidden = YES;
    [self.navigationController.navigationBar setBackgroundImage:nil forBarMetrics:UIBarMetricsDefault];
    [self.navigationController.navigationBar setShadowImage:nil];}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
